package com.ruoyi.house_sale.service.impl;


import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.house_sale.domain.CustomerInfo;
import com.ruoyi.house_sale.domain.Houseinfo;
import com.ruoyi.house_sale.mapper.CustomerInfoMapper;
import com.ruoyi.house_sale.service.ICustomerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("CustomerInfoService")
public class CustomerInfoServiceImpl implements ICustomerInfoService {

    @Autowired
    private CustomerInfoMapper customerInfoMapper;


    @Override
    public CustomerInfo selectCustomerInfoByCustid(Long custid) {
        return customerInfoMapper.selectCustomerInfoByCustid(custid);
    }

    @Override
    public List<CustomerInfo> selectCustomerInfoList(CustomerInfo customerInfo) {
        return customerInfoMapper.selectCustomerInfoList(customerInfo);
    }

    @Override
    public int insertCustomerInfo(CustomerInfo customerInfo) {
        return customerInfoMapper.insertCustomerInfo(customerInfo);
    }

    @Override
    public int updateCustomerInfo(CustomerInfo customerInfo) {
        return customerInfoMapper.updateCustomerInfo(customerInfo);
    }

    @Override
    public int deleteCustomerInfoByCustid(Long custid) {
        return customerInfoMapper.deleteCustomerInfoByCustid(custid);
    }

    @Override
    public int deleteCustomerInfoByCustids(Long[] custids) {
        return customerInfoMapper.deleteCustomerInfoByCustids(custids);
    }

    @Override
    public List<SysDept> selectUserList(SysDept dept) {
        return customerInfoMapper.selectUserList(dept);

    }

    @Override
    public List<Houseinfo> selectCustHouse(Houseinfo  houseinfo) {
        return customerInfoMapper.selectCustHouse(houseinfo);
    }

    @Override
    public CustomerInfo insertCustEvent() {
        return customerInfoMapper.insertCustEvent();
    }

    @Override
    public List<SysUser> selectUser(Long deptid) {
        return customerInfoMapper.selectUser(deptid);
    }
}
